<!--http://www.12301.cc/member_card.html?mobile=13774514920-->
<?php
	$mobile = $var["member"]["mobile"];
	$qq = $var["member"]["qq"];
	//联系人姓名
	$cname = $var["member"]["cname"];
	//店铺名称
	$dname = $var["member"]["dname"];
	//会员类型
	$dtype = $var["member"]["dtype"];
	if($dtype==0){
		$dtype_txt = "供应商";
	}else if($dtype==1){
		$dtype_txt = "分销商";
	}else if($dtype==2){
		$dtype_txt = "资源方";
	}else{
		$dtype_txt = "未知";
	}
	$did = $var["member"]["did"];
	//企业名称
	$com_name = $var["member"]["com_name"];
	$alipay = $var["member"]["alipay"];
	$email = $var["member"]["email"];
	//企业类型
	$com_type = $var["member"]["com_type"];
	$sex = $var["member"]["sex"];

	$readonly = isset($mobile) ? "readonly" : "";

	$mobilereadonly = isset($mobile) ? "readonly" : "";
	$companynamereadonly = isset($mobile) ? "readonly" : "";
?>
<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/membercard/css/membercard.common.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/membercard/css/membercard.css"/>
<!--<script type="text/javascript" src="http://www.12301.cc/js/plugin/json2.js"></script>-->
<!--[if lt IE 7]><div id="memberCardContainer" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 memberCardContainer commonRigContainer"> <![endif]-->
<!--[if IE 7]><div id="memberCardContainer" class="lt-ie10 lt-ie9 lt-ie8 ie7 memberCardContainer commonRigContainer"> <![endif]-->
<!--[if IE 8]><div id="memberCardContainer" class="lt-ie10 lt-ie9 ie8 memberCardContainer commonRigContainer"> <![endif]-->
<!--[if IE 9]><div id="memberCardContainer" class="lt-ie10 ie9 memberCardContainer commonRigContainer"><![endif]-->
<!--[if gt IE 9]><!--><div id="memberCardContainer" class="memberCardContainer commonRigContainer"> <!--<![endif]-->
	<input type="hidden" name="" value="<?=$mobile?>" id="inpHid_mobile"/>
	<input type="hidden" name="" value="<?=$dtype?>" id="inpHid_dtype"/>
	<input type="hidden" name="" value="<?=$com_type?>" id="inpHid_comtype"/>
	<!--<input type="hidden" name="" value="<?=$did?>" id="inpHid_did"/>-->
	<input type="hidden" name="" value="<?=$var['isMyDistributor']?>" id="inpHid_isMyDistributor"/>
	<!--<div id="tabHead" class="tabHead"><span class="tabNav active">会员信息</span><span class="tabNav">资质认证</span><span class="tabNav">会员卡信息</span></div>-->
	<div class="formContainer">
		<form id="registerForm" method="post">
			<input name="action" type="hidden" value="modify_user"/>
			<input id="inpHid_did" name="did" type="hidden" value=""/>
			<!--<div class="topCond">-->
				<!--<div class="d lt">-->
					<!--<select name="dtype" id="memberTypeSelect" class="select">-->
						<!--<? if(isset($mobile)){ ?>-->
							<!--<option value="<?=$dtype?>"><?=$dtype_txt?></option>-->
						<!--<?}else{?>-->
							<!--<option value="1">分销商</option>-->
							<!--<option value="0">供应商</option>-->
							<!--<option value="2">资源方</option>-->
						<!--<?}?>-->

					<!--</select>-->
					<!--<div class="inpBox">-->
						<!--<span class="t">店铺名称</span>-->
						<!--<div class="inpCon"><input require type="text" <?=$readonly?> class="valifyInp shopname" name="" id="shopname" value="<?=$dname?>"/></div>-->
					<!--</div>-->
					<!--<p class="errortip"><i class="star">*</i><i class="t">必填项</i></p>-->
				<!--</div>-->
				<!--<div class="d rg" style="margin-left:1px">-->
					<!--<select name="com_type" id="compTypeSelect" class="select">-->
						<!--<? if(isset($mobile)){ ?>-->
							<!--<option value="<?=$com_type?>"><?=$com_type?></option>-->
						<!--<?}else{?>-->
							<!--<option value="景区">景区</option>-->
							<!--<option value="酒店">酒店</option>-->
							<!--<option value="旅行社">旅行社</option>-->
							<!--<option value="加盟店">加盟店</option>-->
							<!--<option value="电商">电商</option>-->
							<!--<option value="团购">团购</option>-->
							<!--<option value="淘宝/天猫">淘宝/天猫</option>-->
							<!--<option value="个人">个人</option>-->
							<!--<option value="其他">其他</option>-->
						<!--<?}?>-->
					<!--</select>-->
					<!--<div id="companynameInpContainer">-->
						<!--<div class="inpBox">-->
							<!--<span class="t">企业名称</span>-->
							<!--<div class="inpCon"><input name="company"  type="text" <?=$readonly?> value="<?=$com_name?>" class="valifyInp companyname" name="" id="companyname"/></div>-->
						<!--</div>-->
						<!--<p class="warmtip">*必须和银地帐号名称相同，确认后不可修改</p>-->
					<!--</div>-->
				<!--</div>-->
			<!--</div>-->
            <div class="formBox mobile">
                <div class="line">
                    <span class="lt"><i class="star">*</i>手机号</span>
                    <input type="text" name="mobile" <?=$readonly?> require mobile class="formInp valifyInp mobileInp" value="<?=$mobile?>" id="mobileInp" placeholder="手机号"/>
                    <span id="mobileInpErrorTxt" class="errortip mobile"><i class="iconfont">&#xe654;</i><i class="t">手机号格式错误</i></span>
                    <p style="display:none" id="mobileExistTxt" class="mobileExistTxt"><span style="color:#7e828a" class="t">此帐号已注册</span></p>
                </div>
                <div class="line">
                    <span class="lt"><i class="star">*</i>验证码</span>
                    <input type="text" class="formInp checkmaInp valifyInp" require name="vcode" id="checkmaInp" placeholder="请先输入手机号，再获取验证码"/>
                    <a id="getCheckmaBtn" class="getCheckmaBtn setHeight" href="###">获取验证码</a>
                    <span class="errortip ma"><i class="iconfont">&#xe654;</i><i class="t">请输入6位数验证码</i></span>
                </div>
                <div class="line">
                    <span class="lt"><i class="star">*</i>身份证</span>
                    <input type="text" class="formInp idcardInp valifyInp" require name="idcard" id="idcardInp" placeholder="请输入身份证号码"/>
                    <span class="errortip"><i class="iconfont">&#xe654;</i><i class="t">请输入身份证号码</i></span>
                </div>
                <div class="horLine"></div>
            </div>
			<div class="formCon">
                <div class="formBox mobile">
                    <div style="display:none" class="line">
                        <span class="lt"><i class="star">*</i>帐户名称</span>
                        <input require type="text" require <?=$readonly?> class="formInp shopname" name="dname" id="dnameInp" value="<?=$dname?>"/>
                        <span id="" class="errortip mobile"><i class="iconfont">&#xe654;</i><i class="t">帐户名称不能为空</i></span>
                    </div>
                    <!--<div class="line">-->
                        <!--<span class="lt"><i class="star">*</i>会员类型</span>-->
                        <!--<select name="com_type" id="compTypeSelect" class="select">-->
                            <!--<? if(isset($mobile)){ ?>-->
                             <!--<option value="<?=$com_type?>"><?=$com_type?></option>-->
                            <!--<?}else{?>-->
                                <!--<option value="景区">景区</option>-->
                                <!--<option value="酒店">酒店</option>-->
                                <!--<option value="旅行社">旅行社</option>-->
                                <!--<option value="加盟店">加盟店</option>-->
                                <!--<option value="电商">电商</option>-->
                                <!--<option value="团购">团购</option>-->
                                <!--<option value="淘宝/天猫">淘宝/天猫</option>-->
                                <!--<option value="个人">个人</option>-->
                                <!--<option value="其他">其他</option>-->
                            <!--<?}?>-->
                        <!--</select>-->
                    <!--</div>-->
                    <!--<div class="line">-->
                        <!--<span class="lt"><i class="star">*</i>企业名称</span>-->
                        <!--<input name="company" require type="text" <?=$readonly?> value="<?=$com_name?>" class="formInp valifyInp companyname" name="" id="companyname"/>-->
                        <!--<span id="" class="errortip mobile"><i class="iconfont">&#xe654;</i><i class="t">*必须和银地帐号名称相同，确认后不可修改</i></span>-->
                    <!--</div>-->
                </div>
				<div class="formBox ">
					<div class="line setLineBox">
						<input name="sex" id="hidSexInp" type="hidden" value="<?=$sex?>"/>
						<div id="famleWrap" class="famleWrap"><span class="fe lte M active" data-type="M">男</span><span class="fe rte F" data-type="F">女</span></div>
						<span class="lt"><i class="star">*</i>联系人姓名</span>
						<input type="text" require value="<?=$cname?>" <?=$readonly?> id="cnameInp" class="formInp valifyInp nameInp setInp" name="cname" id="" placeholder="必填"/>
						<span class="errortip name setML"><i class="iconfont">&#xe654;</i><i class="t">必填项</i></span>
					</div>
					<!--<div class="line">-->
						<!--<span class="lt"><i class="star">*</i>邮箱</span>-->
						<!--<input type="text" require <?=$readonly?> class="formInp valifyInp email" name="email" value="<?=$email?>" id="" placeholder="必填"/>-->
						<!--<span class="errortip email"><i class="iconfont">&#xe654;</i><i class="t">邮箱格式错误</i></span>-->
					<!--</div>-->
					<!--<div class="line">-->
						<!--<span class="lt">支付宝帐号</span>-->
						<!--<input type="text" <?=$readonly?> value="<?=$alipay?>" class="formInp" name="alipay" id=""/>-->
					<!--</div>-->
					<div class="line">
						<span class="lt">QQ号</span>
						<input type="text" <?=$readonly?> value="<?=$qq?>" class="formInp" name="qq" id="QQInp"/>
					</div>
					<? if(!isset($mobile)){ ?>
						<div class="horLine"></div>
					<?}?>
				</div>
				<? if(!isset($mobile)){ ?>
					<div id="formBox_password" class="formBox formBox_password">
						<div class="line">
							<span class="lt"><i class="star">*</i>密码</span>
							<input type="password" require <?=$readonly?> class="formInp valifyInp passwordInp" data-min="6" data-max="16" name="password" id="passwordInp"/>
							<span class="errortip password" style="display:inline; color:#7e828a"><i class="t">6-16个字符,请使用字母加数字或符号的组合</i></span>
						</div>
						<div class="line">
							<span class="lt"><i class="star">*</i>确认密码</span>
							<input type="password" require <?=$readonly?> class="formInp valifyInp repasswordInp" name="confirmPwd" id="repasswordInp"/>
							<span class="errortip password"><i class="iconfont">&#xe654;</i><i class="t">两次输入密码不一致</i></span>
						</div>
					</div>
				<?}?>
				<div class="formBox buttonW">
					<!--<div class="line">-->
						<!--<span class="lt" style="visibility:hidden"></span><input class="readCheckbox" type="checkbox" name="" id="readCheckbox"/><label for="readCheckbox" class="readtxt">已阅读并同意<a href="http://www.12301.cc/Agreement.html">《票付通服务条款》</a></label>-->
						<!--<p style="margin-left:104px; margin-top:2px;" class="errortip"><i class="iconfont">&#xe654;</i><i class="t">请确认是否同意</i></p>-->
					<!--</div>-->
					<div class="line">
						<span class="lt" style="visibility:hidden"></span>
						<!--<input type="submit" class="saveBtn" id="saveBtn" value="下一步"/>-->
						<a id="saveBtn" class="saveBtn" href="#"><i class="iconfont loading">&#xe644;</i><span class="t default">下一步</span><span class="t loading">正在保存</span></a>
					</div>
				</div>
			</div>
		</form>
		<div id="formLoading" style="display:none" class="formLoading"><div class="con"><img src="http://www.12301.cc/images/icons/gloading.gif" alt=""/><span class="t">正在保存..</span></div></div>
	</div>








	<div id="gMask" class="gMask"></div>
</div>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/class.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/membercard/js/membercard.register.js"></script>
